//
// Created by muyue_ on 2023/5/12.
//

#ifndef CLIONPORJECT_USER_ADC_H
#define CLIONPORJECT_USER_ADC_H

#include "usertask.h"
extern  uint16_t uo2_val[128];
extern volatile uint8_t adc_end_flag;
void adc_init();
float adc_getRms_ou2();
float adc_getRms_ou1_realtime();
void TIM7Callback();
float adc_getRms_ou2_copy()
;

extern uint16_t uo2_val[128];
extern uint16_t uo1_val[100];
extern uint16_t uo2_buff[200];
extern uint16_t uo1_buff[200];
extern int32_t Gain;
extern uint16_t uo1_cnt;


#endif //CLIONPORJECT_USER_ADC_H
